import request from "@/plugins/service";

function findAll() {
  return request({
    url: '/${moduleName}/${className?uncap_first}',
    method: 'GET'
  })
}


function saveOne(data) {
  return request({
    url: '/${moduleName}/${className?uncap_first}',
    method: 'PUT',
    data
  })
}

function deleteOne(id) {
  return request({
    url: '/${moduleName}/${className?uncap_first}/' + id,
    method: 'DELETE'
  })
}

export default {
  findAll,
  saveOne,
  deleteOne
}
